CodingKeys
enum CodingKeys
extension Company.CodingKeys : CodingKey, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, RawRepresentable, Sendable, SendableMetatype
Undocumented
-
Undocumented
Declaration
Swift
case id -
Creates a new instance from the specified integer.
If the value passed as
intValuedoes not correspond to any instance of this type, the result isnil.Declaration
Swift
init?(intValue: Int)Parameters
intValueThe integer value of the desired key.
-
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"Declaration
Swift
init?(rawValue: String)Parameters
rawValueThe raw value to use for the new instance.
-
Creates a new instance from the given string.
If the string passed as
stringValuedoes not correspond to any instance of this type, the result isnil.Declaration
Swift
init?(stringValue: String)Parameters
stringValueThe string value of the desired key.